﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Windows;
using System.Data;
namespace WPFExcelReport
{
    public partial class TABMUVK
    {
        public TABMUVK()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VABAUFM();
            this.DataContext = MV; 
            InitializeComponent();
        } 
        public override void LOADBYAUF()
        {
            base.LOADBYAUF();
            TBMain.Clear(); 
            if (ORDERNUM.Length < 11)
                return; 
            dwData = TBMain.NewRow();
            dwData["ABAMANDANT"] = app.Mandant;
            dwData["ABAAUFKRS"] = ORDERNUM.Substring(1, 2);
            dwData["ABAAUFLFD"] = ORDERNUM.Substring(3, 6);
            dwData["ABAAUFPOS"] = ORDERNUM.Substring(9, 3);
            SResult = TMV.QMU05A(dwData);
            MergeData(SResult, false); 
        } 
    }
}
